package org.itboys.member.entity.mongo;

import java.util.Date;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 会员验证码相关记录
 * @author ChenJunhui
 *
 */
@Entity(value = "MemberCode", noClassnameStored = true)
public class MemberCode extends BaseLongIdEntity {
	
	private static final long serialVersionUID = 101601885555124355L;
	
	
	private Long memberId;
	@Indexed
	private String value;// 手机号
	private String code;// 激活码
	private Date createTime;// 激活码创建时间
	private Date activeTime;// 是靠这个激活码激活的就置上该时间
	
	public Long getMemberId() {
		return memberId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getActiveTime() {
		return activeTime;
	}
	public void setActiveTime(Date activeTime) {
		this.activeTime = activeTime;
	}
}
